#Register custom liquid tags
Dir.glob(File.join(Rails.root, 'lib/liquid/tags/*.rb')).each do |path|
  require path
  file = path.split('/').last.split('.').first
  Liquid::Template.register_tag(file, file.camelize)
end

#Register custom liquid blocks
Dir.glob(File.join(Rails.root, 'lib/liquid/blocks/*.rb')).each do |path|
  require path
  file = path.split('/').last.split('.').first
  Liquid::Template.register_tag(file, file.camelize)
end